using System;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;

namespace FarmDemo.Models;

public class User
{

    public User()
    {
        RefreshTokens = new HashSet<RefreshToken>();
    }
    public int UserId { set; get; }   // 主键 userid
    public string? userName { set; get; }
    public string? password { set; get; }
    public bool? gender { set; get; } // 性别 女为1
    public short? age { set; get; }
    public string? email { set; get; }

    public virtual Role Role { get; set; }
    public virtual ICollection<RefreshToken> RefreshTokens { get; set; }

}

